/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Util;

import java.util.Vector;
import javax.swing.DefaultComboBoxModel;

/**
 *
 * @author Dark_Knight
 */
public class ComboBoxTagModel extends DefaultComboBoxModel {
    private Vector tagList;
    
    public ComboBoxTagModel() {
        super();
        tagList = new Vector();
    }
        
    @Override
    public void addElement(Object element) {
        super.addElement(element);        
    }
    
    public void addElement(Object element, int tag) {
        addElement(element);
        tagList.add(tag);
    }
    
    public Object getTagItem(int index) {
        return tagList.get(index);
    }
}
